package com.lin.manager.notice.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lin.manager.notice.model.dto.NoticeUserDTO;
import com.lin.manager.notice.model.entity.NoticeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @作者: 林江
 * @创建时间: 2024-04-10 19:11:15
 * @功能:
 */
@Mapper
public interface NoticeDao extends BaseMapper<NoticeEntity> {
    Page<NoticeUserDTO> listRecivePage(Page<Object> objectPage, @Param("key") String key, @Param("status") Integer status, @Param("userId") Long userId);

    Integer unread(@Param("userId") Long userId);

}
